# base image
FROM index.mindcoder.cn/docker/centos/nodejs

# MAINTAINER
LABEL Author="yanjingtu<yanjingtu2008@yeah.net>"

# add file
ADD scripts /scripts

# run command
RUN chmod +x /scripts/*.sh && cd /scripts && ./install-python.sh
RUN rm -rf /scripts

RUN yum install -q -y --nogpgcheck git ftp && yum clean all

RUN git clone https://gitee.com/yanjingtu/pip-tool.git

WORKDIR /pip-tool
RUN cnpm install

# ports
EXPOSE 3001

# volumes
VOLUME ["/mnt"]

# main command
CMD ["/bin/bash", "./startServer.sh"]

